package com.linkgie.galaxyframework.httpproxy.core;

import java.lang.reflect.Method;

import com.linkgie.galaxyframework.httpproxy.HttpServiceContext;
import com.linkgie.galaxyframework.httpproxy.ServiceInvocationContext;

class ServiceInvocationContextImpl implements ServiceInvocationContext {

    private HttpServiceContext serviceContext;

    private HttpActionContext actionContext;

    public ServiceInvocationContextImpl(HttpServiceContext serviceContext, HttpActionContext actionContext) {
        this.serviceContext = serviceContext;
        this.actionContext = actionContext;
    }

    @Override
    public boolean isResolveContentOnHttpError() {
        return actionContext.isResolveContentOnHttpError();
    }

    @Override
    public Class<?> getServiceClasss() {
        return serviceContext.getServiceClasss();
    }

    @Override
    public Object getProxyBindingData() {
        return serviceContext.getProxyBindingData();
    }

    @Override
    public Method getServiceMethod() {
        return actionContext.getServiceMethod();
    }

}
